package com.sf.marathon.soul.extral;

import java.math.BigDecimal;

import com.alibaba.fastjson.JSON;
import com.sf.marathon.soul.domain.ProMarketBase;
import com.sf.marathon.soul.vo.SenderGroupVO;

/**
 * @author liutao
 * @create 2017-12-15 下午2:50
 */

public class VOBuilder {

    public static SenderGroupVO buidSenderGroupVO() {
        SenderGroupVO vo = new SenderGroupVO();
        vo.setSender("刘涛");
        vo.setSenderPhone("13566");
        vo.setToAddress("软件产业基地");
        vo.setToArea("广东省深圳市");
        vo.setGroupId(Long.valueOf(1));
        vo.setAverageWeight(BigDecimal.valueOf(2.5));
        vo.setDailyQty(BigDecimal.valueOf(2));
        vo.setUserId(Long.valueOf(1));

        System.err.println(JSON.toJSONString(vo));

        return vo;
    }

    public static void build1() {
        ProMarketBase m = new ProMarketBase();
        m.setMaketName("鞋服");
        m.setGroupDuration(3*24*60);
        m.setGroupLimit(20);
        m.setWeightMin(BigDecimal.valueOf(0.5));
        m.setWeightMin(BigDecimal.valueOf(1.5));
        System.err.println(JSON.toJSONString(m));
    }

    public static void main(String[] args) {
//        buidSenderGroupVO();
        build1();
    }
}
